﻿using System;

namespace homework5
{
    class Program
    {
        static void Main(string[] args)
        {   //下面这个函数验证一个数是否为质数
            int zhishu(int a)
            {
                int t = 0;//从二开始验证是否为素数
                for (int i = 2; i <= a; i++)
                {
                    if (a % i == 0)
                        t++;
                }
                if (t == 1)//除了一之外只有它本身
                    return 1;
                else
                    return 0;
            }
            string s = null; int zu = 0;
            for (int a = 6; a < 101;)
            {
                for (int b = 3; b <= a / 2; b++)//有2的肯定不算，故从三开始
                    if (zhishu(b) == 1 && zhishu(a - b) == 1)//判断两个都为质数
                    {
                        s += a.ToString() + "=" + b.ToString() + "+" + (a - b).ToString() + "     ";
                        zu++;
                        if (zu == 5)//五个一换行
                        {
                            Console.Write("{0}\r\n", s);
                            s = null;
                            zu = 0;
                        }
                    }
                a = a + 2;
            }

            Console.ReadLine();

        }
    }
}
